portfolio accounting top sql statements threshold financial table growth door hardware e-financial security master door bottom pay bills online operational risk management top sql resource usage astragal